#!/bin/sh
name="Fred Fardbuckle"
if grep "$name" db > /dev/null 2>&1
then
	echo Found $name
else
	echo "Didn't find $name"        # Fred is not in the db file
fi

if awk "/$name/" db > /dev/null 2>&1
then
	echo Found $name
else
	echo "Didn't find $name"
fi
if sed -n "/$name/p" db > /dev/null 2>&1
then
	echo Found $name
else
	echo "Didn't find $name"
fi
